package com.neussoft.neu24.dibuy.entity;


import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * @program: learn
 * @description:
 * @author: Jingdi.Duan ,duanjingdi@msn.com
 * @create: 2024-07-10 14:56
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor

@Table("t_user")
public class DemoUser {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id; //
    private String username = "ttc";
    private String password = "666";
    private String email = "duanjingdi@163.com";
    //    @Transient
    private String phone = "13674136186";
    @Column("create_time")
    private LocalDateTime createTime = LocalDateTime.now();
    @Column("update_time")
    private LocalDateTime updateTime = LocalDateTime.now();


}
